<template>
    <div>
        <el-row class="tac">
            <el-col>
                <el-menu default-active="1" class="el-menu-vertical-demo" background-color="#545c64" text-color="#B3C0D1"
                    active-text-color="#fff">
                    <p style="text-align: center;">黑马面经</p>
                    <el-menu-item index="1" @click="navbars('hmEachrts')">
                        <i class="el-icon-pie-chart"></i>
                        <span slot="title">数据看板</span>
                    </el-menu-item>
                    <el-menu-item index="2"  @click="navbars('heimaMsg')">
                        <i class="el-icon-notebook-1"></i>
                        <span slot="title">面经管理</span>
                    </el-menu-item>
                </el-menu>
            </el-col>

        </el-row>
    </div>
</template>

<script>
export default {
    methods:{
        navbars(val){
            console.log(this.$route,'E');
                if (this.$route.path !=('/'+val)) {
                    this.$router.push('/'+val)
                }
        }
    }
}
</script>

<style lang="scss" scoped>
.el-menu{
    border:  none;
    height: 100vh;
}
    p{
        color: #fff;
        padding: 20px;
        font-size: 22px;
    }
</style>